#ifndef DISCARD_SAMPLE_H
#define DISCARD_SAMPLE_H
#include "SampleBase.h"
#include "cube.h"
#include "glslprogram.h"
#include <memory>
#include "glm\glm.hpp"
namespace ShaderLab {
	
	class DiscardSample : public SampleBase {
	public:
		DiscardSample();
		~DiscardSample();

		void Init();
		void Update(float time);
		void Render();
		void Imgui();
		void ShutDown();
	public:
		void CreateShader();
	private:
		std::unique_ptr<Cube> cube;
		GLSLProgram program;
		glm::mat4 model, view, projection;
		float scale,threshold;
	};
}
#endif // !TEMPLATE_SAMPLE_H
